package mp

import (
	"context"
	pb "git.mycaigou.com/gfyx/micro-gfyx-mp-api/proto/micro_gfyx_user_service_proto/micro-gfyx-user-service"
)

type MpRepositoryIface interface {
	// GetMiniProgramOpenId 获取小程序openid
	GetMiniProgramOpenId(ctx context.Context, code string) (*MPLoginInfo, error)
	// GetMpAccessToken 获取access_token
	GetMpAccessToken(ctx context.Context) (resp *pb.GetAccessTokenResponse, err error)
	// CleanMpAccessToken 清理缓存
	CleanMpAccessToken(ctx context.Context) error
	// GetMpMobile 获取手机号
	GetMpMobile(ctx context.Context, request *pb.GetMobileRequest) (*pb.GetMobileResponse, error)
}
